package com.fangxing.apps.example.redis;

import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by fangxing on 17-6-19.
 */
@Component
public class UserRedisRepository {
    //@Autowired
    //private StringRedisTemplate stringRedisTemplate;

    public void addUser(UserRedisEntity userEntity){
        Gson gson = new Gson();
        //stringRedisTemplate.opsForValue().set(userEntity.getId(), gson.toJson(userEntity));
    }
}
